<template>
  <div>
    <div class="header">
      <p>安全设置</p>
      <span class="line"></span>
    </div>
    <div class="message">
      <el-form ref="form" :model="form">
        <h1>基础信息</h1>
        <el-form-item label="会员名:">
          <span>Admin</span>
        </el-form-item>
        <el-form-item label="登陆邮箱:">
          <span>879****@qq.com</span>
        </el-form-item>
        <el-form-item label="已绑定手机:">
          <span>198****2995</span>
          <el-button type="primary" @click="onSubmit2">修改手机</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="safesetting">
      <el-form ref="form" :model="form">
        <h1>安全设置</h1>
        <div class="grade">
          <el-form-item class="item" label="安全等级:">
            <p></p>
          </el-form-item>
        </div>
        <el-form-item label="登陆密码:">
          <i class="el-icon-success"></i>
          <span>安全性高的密码可以使账号更安全，建议您定期更换密码</span>
          <el-button type="primary" @click="onSubmit1">修改密码</el-button>
        </el-form-item>
        <el-form-item label="绑定手机:">
          <i class="el-icon-success"></i>
          <span>绑定手机之后，您即可使用验证码进行登录和方便找回密码</span>
          <el-button type="primary" @click="onSubmit2">修改手机</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
  
<script>
export default {
  name: '',
  components: {},
  data() {
    return {
      form: {
        user: '',
        region: ''
      },

    }
  },
  methods: {
    onSubmit1() {
      console.log('submit!');
      this.$router.push("/set/security/change");
    },
    onSubmit2() {
      console.log('submit!');
      this.$router.push("/set/security/modify");
    },
  }
};
</script>
  
<style scoped lang='less'>
.header {
  position: relative;
  font-size: 28px;
  text-align: center;

  color: rgb(102, 102, 102);

  .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: silver;
    position: absolute;
    left: 0px;
    top: 50px;
  }
}

.message {
  margin-top: 50px;
}

.safesetting {
  .grade {

    p {
      display: block;
      width: 300px;
      height: 8px;
      background-color: greenyellow;
      margin: 16px 0 0 80px;
      border-radius: 4px;
    }
  }

  span {
    color: silver;
  }
}

i {
  color: greenyellow;
  font-size: 30px;
  margin-right: 20px;
}

.el-button {
  margin-left: 20px;
  border-radius: 16px;
}
</style>
